<?php
/*
+--------------------------------------------------------------------------
|   phpBIZ v3.0  full version
|   ========================================
|   by taft@wjl.cn yejun@wjl.cn
|   http://www.phpbiz.cn http://www.wjl.cn
|   all rights reserved
+---------------------------------------------------------------------------
|
|   > 最后修改日期：2005-4-30 2006-2-8
|
+--------------------------------------------------------------------------
*/
!class_exists('Debug') && exit('Forbidden');
$idx = new DetailMessage;
class DetailMessage
{
	function DetailMessage()
	{
		global $BIZ,$INCOME,$DB;
        $id = intval($INCOME[id]);
		$DB -> db_query("SELECT * FROM biz_info WHERE id=".$id." LIMIT 1");
		if(! $DB -> db_fetch_num() ) $BIZ -> error("错误：没有相关信息");
		$r= $DB -> db_fetch_row();
		$DB -> db_query("UPDATE biz_info SET info_visit_count = info_visit_count+1 WHERE id=".$id);
		$r['info_content']=nl2br($r['info_content']);
		$r['info_content']=str_replace("<br />","<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",$r['info_content']);
		$r['info_active_time'] = date("Y-m-d H:i",$r['info_active_time']);
		$BIZ -> assign("r",$r);
		$BIZ -> output("DetailM.tpl");
	}
}
?>